package com.teziyou.commodity.model;

import java.util.List;

import com.jfinal.plugin.activerecord.Model;

public class Dict extends Model<Dict> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7263433859069690893L;
	
	public static final Dict dao = new Dict();
	
	public List<Dict> getDictsByType(String type) {
		return find("select * from dictionary_definition where ItemType = ?", type);
	}

}
